/**
 * @description: 配置
 */
import { defHttp } from '../http'
import type { CommonAPI } from '../schema/all'

/** 获取管理端地址 */
export const getAdminApiConfigMgrAddrApi: CommonAPI<
  '/admin/api/config/mgr-addr',
  'get'
> = (params) => defHttp.get(`/admin/api/config/mgr-addr`, { params })

/** 设置管理端地址 */
export const updateAdminApiConfigMgrAddrApi: CommonAPI<
  '/admin/api/config/mgr-addr',
  'put'
> = (data) => defHttp.put(`/admin/api/config/mgr-addr`, { data })
